
package cesdentalrecord.dao.view;

import cesdentalrecord.dao.Student;
import cesdentalrecord.dao.controller.ViewAllStudentsController;

import java.util.List;

public class ViewAllStudentsView {
	
	public void displayAllStudents(List<Student> studentList){
		System.out.println(studentList);
	}

	public List<Student> sendViewAllStudentsRequest() {
	
	ViewAllStudentsController control = new ViewAllStudentsController();
	List<Student> studentList = control.validateViewAllStudentRequest();
	ViewAllStudentsView vasv = new ViewAllStudentsView();
	vasv.displayAllStudents(studentList);
	return (studentList);
	}
}
